﻿using Autofac;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ScienceAIApp.ViewModels;
using System.Windows.Forms;

namespace ScienceAIApp;
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
    private readonly FirstScreenViewModel _firstScreenViewModel;
    public MainWindow(FirstScreenViewModel firstScreenViewModel)
    {
        InitializeComponent();
        _firstScreenViewModel = firstScreenViewModel;
    }

    private void AppLoaded(object sender, RoutedEventArgs e)
    {
        this.Height = Screen.PrimaryScreen.Bounds.Height;
        this.Width = Screen.PrimaryScreen.Bounds.Width;

        MainViewModelViewHost.Height = Height;
        MainViewModelViewHost.Width = Width;

        MainViewModelViewHost.ViewModel = _firstScreenViewModel;
    }
}